<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="title.jsp"/>
<meta charset="utf-8"/>
 <meta name="keywords" content="贷款，信用贷，分期，借款，万八千，信用借款，借款5000元，小额现金贷" />
  <meta name="description" content="万八千提供快速的小额借款服务。可以借款5000元、无抵押、无担保、万八千是一款针对成人白领市场的消费金融产品，通过互联网、大数据等科技手段，为用户提供短期的信用借贷，解决用户资金周转问题。"/>
<link href="css/style.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="css/normalize.css" />
<link rel="stylesheet" type="text/css" href="css/default.css">
<link href="css/jquery.ui.datepicker.css" rel="stylesheet" type="text/css" />
<script src="js/jqbase.js"></script>
<script type="text/javascript" src="js/jquery-1.8.3.js"></script>
<script type="text/javascript" src="js/jquery.ui.core.js"></script>
<script type="text/javascript" src="js/jquery.ui.datepicker.js"></script>
<script src="myjs/gy.js"></script>
<script src="myjs/search.js"></script>
</head>
<body style="background:#eaedf1;">
<jsp:include page="top.jsp"/>
	<div class="backstage no-mar">
		<div class="chose_btn clearfix">
			<a href="" class="frash fl"><img src="img/frash.png"></a>
			<input placeholder="内容关键词" value="${pager.key }" class="fl key_words" id="key">
			<table width="650" border="0" cellspacing="0" cellpadding="0" class="register-table">
				 <tr>
				    <td height="40" align="right">有效期起始：</td>
				    <td height="40" align="left"><input type="text" value="${pager.time1 }" name="te" id="from" class="test-style width150" /></td>
				    <td height="40" align="right">有效期截止：</td>
				    <td height="40" align="left"><input type="text" value="${pager.time2 }" name="tex" id="to" class="test-style width150" /></td>
				     <td height="40" align="right">审核步骤：</td> 
				     <td height="40" align="left"><select id="exam" >
				                                          <option value=''>全部</option>
				                                         <option value=0 >待审核0</option>
				                                           <option value=1>待审核1</option>
				                                          <option value=2>机审通过</option>
				                                         <option value=3>机审不通过</option>
				                                         <option value=4>人工审核中</option>
				                                         <option value=5>材料审核通过</option>
				                                         <option value=6>复审通过</option>
				                                         <option value=7>终审通过</option>
				                                         <option value=8>材料审核未通过</option>
				                                         <option value=9>复审未通过</option>
				                                         <option value=10>终审未通过</option>
				                                         </select></td> 
				 </tr>
			</table>
			<button value="" id="search">搜索</button>
		</div> 
		<table class="caozuo audit">
			<tr>
				<th class="w3">用户</th>
				<th class="w3">用户ID</th>
				<th class="w3">登录手机号</th>
				<th>借款手机号</th>
				<th class="">推荐人手机号</th>
				<th>会员等级</th>
				<th>累计借款金额</th>
				<th>代理商</th>
				<th>登录锁定</th>
				<th>注册时间</th>
				<th>审核状态</th>
				<th>逾期标志</th>
				<th>操作</th>
			</tr>
		<c:forEach items="${pager.list }" var="user">
			<tr>
				<td>${user.userName }</td>
				<td>${user.userId }</td>
				<td>${user.loginMobile }</td>
				<td>${user.loanMobile }</td>
				<td>${user.recommendMobile }</td>
				<td><c:if test="${user.userLevel==0 }">普通会员</c:if>
				<c:if test="${user.userLevel==1 }">铜牌会员</c:if>
				<c:if test="${user.userLevel==2 }">白银会员</c:if>
				<c:if test="${user.userLevel==3 }">黄金会员</c:if>
				<c:if test="${user.userLevel==4 }">钻石会员</c:if>
				</td>
				<td>${user.totalCreditLoan }</td>
				<td>
				<c:if test="${user.agentStatus==0 }">未申请</c:if>
				<c:if test="${user.agentStatus==1 }">申请中</c:if>
				<c:if test="${user.agentStatus==2 }">审核通过</c:if>
				<c:if test="${user.agentStatus==3 }">审核不通过</c:if>
				<c:if test="${user.agentStatus==4 }">自动关闭</c:if>
				</td>
				<td><c:if test="${user.loginLock==0 }">不锁定</c:if>
				<c:if test="${user.loginLock==1 }">锁定</c:if>
				<c:if test="${user.loginLock==2 }">已注销</c:if>
				</td>
				<td><fmt:formatDate value="${user.createTimeD }" pattern="yyyy-MM-dd HH:mm:ss" /></td>
				<td><c:if test="${user.authStep==0 }">待审核0</c:if>
				<c:if test="${user.authStep==1 }">待审核1</c:if>
				<c:if test="${user.authStep==2 }">机审通过</c:if>
				<c:if test="${user.authStep==3}">机审不通过</c:if>
				<c:if test="${user.authStep==4 }">人工审核中</c:if>
				<c:if test="${user.authStep==5 }">材料审核通过</c:if>
				<c:if test="${user.authStep==6 }">复审通过</c:if>
				<c:if test="${user.authStep==7 }">终审通过</c:if>
				<c:if test="${user.authStep==8 }">材料审核未通过</c:if>
				<c:if test="${user.authStep==9 }">复审未通过</c:if>
				<c:if test="${user.authStep==10 }">终审未通过</c:if></td>
				<td><c:if test="${user.overdueFlag==0 }">无</c:if>
				<c:if test="${user.overdueFlag==1 }">有</c:if></td>
				<td><a href="userInfo.html?userId=${user.userId}" class="work4"></a></td>
			</tr>
		</c:forEach>
		</table>
		<p class="tongji">共${pager.totalRow }条</p>
		 <div class="page clearfix">
		 <div ><font color="red">${pager.tot}</font></div>
                <div class="page-link fl">
                    <a href="lmUserLoanAgin.html?page=1&pageSize=${pager.pageSize }&userId=${pager.userId}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}&step=${pager.step}">首页</a>
                    <a href="lmUserLoanAgin.html?page=${pager.page-1 }&pageSize=${pager.pageSize }&userId=${pager.userId}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}&step=${pager.step}">上一页</a>
                    <a class="active" href="#">${pager.page }</a>
                    <a href="lmUserLoanAgin.html?page=${pager.page+1 }&pageSize=${pager.pageSize }&userId=${pager.userId}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}&step=${pager.step}">下一页</a>
                    <a href="lmUserLoanAgin.html?page=${pager.totalPage }&pageSize=${pager.pageSize }&userId=${pager.userId}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}&step=${pager.step}">尾页</a>
                    <input class="nedGo" type="text"  style="display: inline-block;height: 28px;line-height: 28px;padding: 0 11px;margin: 0 4px;vertical-align: top;width: 50px;word-spacing: normal;border: 1px solid #c3c8cd;font-size: 12px;transition: color .3s ease, background-color .3s ease;"/>
  					<a class="ned_go" onclick="nedGo(this)">GO</a>
  					<script>
  						
  						 var nedGo=function(that){
  							var nedPage=parseInt($(that).siblings(".nedGo").val());
  							console.log(nedPage); 
  							//做个数字类型判断
  							location.href="lmUserLoanAgin.html?page="+nedPage+"&pageSize=${pager.pageSize }&userId=${pager.userId}&key=${pager.key}&time1=${pager.time1}&time2=${pager.time2}";
  						 }
  					</script>
                </div>
                <div class="page-info fl">共<span>${pager.totalRow }</span>条信息&nbsp;&nbsp;当前显示第<span>${pager.page }</span>页</div>
            </div>
	</div>
<jsp:include page="foot.jsp"/>
<jsp:include page="left.jsp"/>
<script type="text/javascript">
$(function(){
	$("#search").click(function(){
		var step=$("#exam").val();
		var key=$("#key").val();
		var time1=$("#from").val();
		var time2=$("#to").val();
		window.location.href="lmUser.html?page=${pager.page}&&pageSize=${pager.pageSize }&userId=${pager.userId}&key="+key+"&time1="+time1+"&time2="+time2+"&step="+step;
		 
	})
})

</script>
</body>
</html>